CXXFLAGS = -std=c++0x -O3 -Wall -g -pedantic -msse -march=native -ffast-math

exec_plan: operations.o server.o exec_plan.cc
	g++ $(CXXFLAGS) exec_plan.cc operations.o server.o `pkg-config --cflags --libs protobuf` -o exec_plan

server.o: server.h server.cc
	g++ $(CXXFLAGS) -c server.cc -o server.o

operations.o: operations.pb.h operations.pb.cc
	g++ $(CXXFLAGS) -c operations.pb.cc -o operations.o

clean:
	rm operations.o server.o exec_plan *~
